<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/base/base.jsp"%>
<%@ include file="/base/database.jsp"%>
		<%
			String leaveID=request.getParameter("leaveID");
		
			String sql="delete from sys_leave where leaveID=?";
			
			Connection conn=getConn();

			PreparedStatement pstmt=conn.prepareStatement(sql);
			
			
			int parameterIndex=1;
			
			pstmt.setNString(parameterIndex,leaveID);
			
			int count=pstmt.executeUpdate();
			
			close(pstmt,conn);
			
			process(request,response,"leave_list.jsp");
		%>